package com.caiyouxi.finance.mapper;

import com.caiyouxi.finance.model.FinancePaymentDetail;
import com.caiyouxi.finance.model.FinanceTradeDetail;
import com.caiyouxi.restrict.model.RestrictedByConsume;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 交易明细
 * Created by Administrator on 2017/10/18.
 */
@Mapper
public interface FinanceTradeDetailMapper {

    //查询
    public FinanceTradeDetail select_finance_trade_details(BigInteger id);

    public FinanceTradeDetail select_finance_trade_details_by_map(HashMap<String,Object> map);

    public List<FinanceTradeDetail> get_list(FinanceTradeDetail bean);

    //增加
    public int add_finance_trade_details(FinanceTradeDetail bean);

    //修改
    public int update_finance_trade_details(FinanceTradeDetail bean);

    //删除
    public int delete_finance_trade_details(FinanceTradeDetail bean);

    List<FinanceTradeDetail> get_user_consume_list(RestrictedByConsume rbc);

    List<FinancePaymentDetail> get_user_payment(Map<String, Object> map);

    /**
     * 分页查询
     * wushihao
     * */
    List<FinanceTradeDetail> get_financetrade_list(FinanceTradeDetail bean);
    /**
     * 查询条数
     * wushihao
     * */
    int get_financetrade_counts(FinanceTradeDetail bean);
}
